package com.itheima.tanhuauser.mapper;

import com.itheima.pojo.ThFollow;
import com.itheima.pojo.User;
import com.itheima.vo.UserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    public User selectByPhone(String phone);

    int addUser(User newUser);

    int updateMsg(UserVo userVo);

    List<User> someoneLike(@Param("id") String id);

    List<User> likeSomeOne(@Param("id") String id);

    List<User> likeEachOther(@Param("id") String id);


    int addLike(ThFollow thFollow);

    int deleteLike(String followId);
}
